<?php
/**
 *
 * FinaScholarship.php
 * User: kalvin
 * Date: 2018/4/9
 * Time: 下午3:14
 */

namespace App\System\Fina\Repositories;


use App\System\Base\Helpers\Traits\SinglePattern;
use App\System\Base\Repositories\Repository;
use App\System\Fina\Model\FinaScholarship;

class FinaScholarshipRepository extends Repository
{
    use SinglePattern;

    public function getUserInvite($user_id)
    {
        return FinaScholarship::where('user_id','=',$user_id)
            ->whereNotNull('invited_id')
            ->where('in_come','=','1')
            ->get();
    }
}